def feibo(n):
    a,b = 0,1
    c = 0
    while c<n:
        a,b = b,a+b
        yield a
        c += 1
a = feibo(10)
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))
print(next(a))





